package com.pjedu.nbmallshop.mapper;

import java.util.HashMap;

import com.pjedu.nbmallshop.entity.MallGoodsCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallGoodsCategoryMapper {
    int deleteByPrimaryKey(Long categoryId);

    int insert(MallGoodsCategory record);

    int insertSelective(MallGoodsCategory record);

    MallGoodsCategory selectByPrimaryKey(Long categoryId);

    MallGoodsCategory selectByLevelAndName(@Param("categoryLevel") Integer categoryLevel, @Param("categoryName") String categoryName);

    int updateByPrimaryKeySelective(MallGoodsCategory record);

    int updateByPrimaryKey(MallGoodsCategory record);

    List<MallGoodsCategory> findGoodsCategoryList(HashMap pageUtil);

    int getTotalGoodsCategories(HashMap pageUtil);

    int deleteBatch(Integer[] ids);

    List<MallGoodsCategory> selectByLevelAndParentIdsAndNumber(@Param("parentIds") List<Long> parentIds, @Param("categoryLevel") int categoryLevel, @Param("number") int number);
}